<div class="widget am-cf">
	<div class="am-fl"><a href="javascript:void(0)" class="am-btn am-btn-primary am-btn-xs" onclick="history.go(-1);return false;"><i class="am-icon-long-arrow-left"></i> 商品报损执行</a></div>
    <div class="am-fr">
    	{{ if eq .m.Auditing 1 }}
        <a href="javascript:void(0)" class="am-btn am-btn-danger am-btn-xs" id="cennelBtn"><i class="am-icon-times"></i> 驳回</a>
        <a href="javascript:void(0)" class="am-btn am-btn-primary am-btn-xs" id="yesBtn"><i class="am-icon-check"></i> 通过执行</a>
        {{ end }}
    </div>
</div>
<style>.am-table-tit>tbody>tr>td{ border-top:0;vertical-align: middle;}.attr{ color: #999; margin-top: 10px;} .attr span{ margin-right: 20px;}.list span{ margin-right: 10px;}.query-form{ display: none;}#dataTables td{ vertical-align: middle;}</style>
<div style="background-color:#f2f8fa; padding:20px 20px 1px 20px; margin-bottom:15px;">
    <table class="am-table am-table-tit">
    	<td>
        	<p class="am-text-lg" style="color:#000; font-weight:bold;">{{.m.Number}}</p>
            <p class="am-serif am-text-sm" style=" margin-bottom:0px;">报损人：{{.m.BadreportUser}}</p>
            <p class="am-serif am-text-sm" style=" margin-top:10px;margin-bottom:0px;">报损时间：{{.m.BadreportTime | getDate}}</p>
            <p class="am-serif am-text-sm" style=" margin-top:10px;">备注：{{.m.Remarks}}</p>
        </td>
        <td>
            {{ if .m.AuditingUser }}
                <p class="am-serif am-text-sm" style=" margin-bottom:0px;">审核人：{{.m.AuditingUser}}</p>
                <p class="am-serif am-text-sm" style=" margin-top:10px;margin-bottom:0px;">审核时间：{{.m.AuditingTime | getDate}}</p>
            {{end}}
        </td>
        <td>
            {{ if .m.ExecuteUser }}
                <p class="am-serif am-text-sm" style=" margin-bottom:0px;">执行人：{{.m.ExecuteUser}}</p>
                <p class="am-serif am-text-sm" style=" margin-top:10px;margin-bottom:0px;">执行时间：{{.m.ExecuteTime | getDate}}</p>
            {{end}}
        </td>
        <td align="center">
        	{{ if eq .m.Auditing 0 }}
            	<span class="am-text-lg" style="color:#000; font-weight:bold;">待审核</span>
            {{end}}
            {{ if eq .m.Auditing 1 }}
            	<span class="am-text-lg" style="color:#000; font-weight:bold;">通过审核待执行</span>
            {{end}}
         	{{ if eq .m.Auditing 2 }}
            	<span class="am-text-lg" style="color:#000; font-weight:bold;">已驳回</span>
            {{end}}
            {{ if eq .m.Auditing 3 }}
            	<span class="am-text-lg" style="color:#000; font-weight:bold;">已执行</span>
            {{end}}
            {{ if eq .m.Auditing 4 }}
                <span class="am-text-lg" style="color:#000; font-weight:bold;">执行驳回</span>
            {{end}}
        </td>
    </table>
</div>
<div class="widget am-cf">
    <div class="widget-body  am-fr">

            <table width="100%" class="am-table tpl-table-black am-table-hover am-table-bordered " id="dataTables">
                <thead>
                <tr>
                    <th width="10%">ID</th>
                    <th>品名</th>
                    <th>原因</th>
                    <th width="10%"> 报损数量 </th>
                </tr>
                </thead>
                <tbody></tbody>
            </table>

    </div>
</div>